package threadDemo;
class MyThread2 implements Runnable{
    @Override
    public void run() {
        System.out.println("创建线程的第二种方法");
    }
}
public class demo02 {
    public static void main(String[] args) {
        MyThread2 myThread2 = new MyThread2();
        Thread t = new Thread(myThread2);
        t.start();
    }
}
